Optimal. Leaf size=54 \[ -\frac {2}{3} (2+3 x) \sqrt {8+12 x+9 x^2}+\frac {1}{9} \left (8+12 x+9 x^2\right )^{3/2}-\frac {8}{3} \sinh ^{-1}\left (1+\frac {3 x}{2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {654, 626, 633,
221} \begin {gather*} \frac {1}{9} \left (9 x^2+12 x+8\right )^{3/2}-\frac {2}{3} (3 x+2) \sqrt {9 x^2+12 x+8}-\frac {8}{3} \sinh ^{-1}\left (\frac {3 x}{2}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 626
Rule 633
Rule 654
Rubi steps
\begin {align*} \int (-2+3 x) \sqrt {8+12 x+9 x^2} \, dx &=\frac {1}{9} \left (8+12 x+9 x^2\right )^{3/2}-4 \int \sqrt {8+12 x+9 x^2} \, dx\\ &=-\frac {2}{3} (2+3 x) \sqrt {8+12 x+9 x^2}+\frac {1}{9} \left (8+12 x+9 x^2\right )^{3/2}-8 \int \frac {1}{\sqrt {8+12 x+9 x^2}} \, dx\\ &=-\frac {2}{3} (2+3 x) \sqrt {8+12 x+9 x^2}+\frac {1}{9} \left (8+12 x+9 x^2\right )^{3/2}-\frac {2}{9} \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{144}}} \, dx,x,12+18 x\right )\\ &=-\frac {2}{3} (2+3 x) \sqrt {8+12 x+9 x^2}+\frac {1}{9} \left (8+12 x+9 x^2\right )^{3/2}-\frac {8}{3} \sinh ^{-1}\left (1+\frac {3 x}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 53, normalized size = 0.98 \begin {gather*} \frac {1}{9} \left (-4-6 x+9 x^2\right ) \sqrt {8+12 x+9 x^2}+\frac {8}{3} \log \left (-2-3 x+\sqrt {8+12 x+9 x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.71, size = 43, normalized size = 0.80
method | result | size |
risch | \(\frac {\left (9 x^{2}-6 x -4\right ) \sqrt {9 x^{2}+12 x +8}}{9}-\frac {8 \arcsinh \left (1+\frac {3 x}{2}\right )}{3}\) | \(34\) |
default | \(-\frac {\left (18 x +12\right ) \sqrt {9 x^{2}+12 x +8}}{9}-\frac {8 \arcsinh \left (1+\frac {3 x}{2}\right )}{3}+\frac {\left (9 x^{2}+12 x +8\right )^{\frac {3}{2}}}{9}\) | \(43\) |
trager | \(\left (x^{2}-\frac {2}{3} x -\frac {4}{9}\right ) \sqrt {9 x^{2}+12 x +8}-\frac {8 \ln \left (3 x +2+\sqrt {9 x^{2}+12 x +8}\right )}{3}\) | \(43\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 52, normalized size = 0.96 \begin {gather*} \frac {1}{9} \, {\left (9 \, x^{2} + 12 \, x + 8\right )}^{\frac {3}{2}} - 2 \, \sqrt {9 \, x^{2} + 12 \, x + 8} x - \frac {4}{3} \, \sqrt {9 \, x^{2} + 12 \, x + 8} - \frac {8}{3} \, \operatorname {arsinh}\left (\frac {3}{2} \, x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.78, size = 45, normalized size = 0.83 \begin {gather*} \frac {1}{9} \, \sqrt {9 \, x^{2} + 12 \, x + 8} {\left (9 \, x^{2} - 6 \, x - 4\right )} + \frac {8}{3} \, \log \left (-3 \, x + \sqrt {9 \, x^{2} + 12 \, x + 8} - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (3 x - 2\right ) \sqrt {9 x^{2} + 12 x + 8}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.93, size = 45, normalized size = 0.83 \begin {gather*} \frac {1}{9} \, {\left (3 \, {\left (3 \, x - 2\right )} x - 4\right )} \sqrt {9 \, x^{2} + 12 \, x + 8} + \frac {8}{3} \, \log \left (-3 \, x + \sqrt {9 \, x^{2} + 12 \, x + 8} - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.24, size = 84, normalized size = 1.56 \begin {gather*} \frac {\sqrt {9\,x^2+12\,x+8}\,\left (648\,x^2+216\,x+144\right )}{648}-\frac {4\,\ln \left (x+\frac {\sqrt {9\,x^2+12\,x+8}}{3}+\frac {2}{3}\right )}{3}-2\,\left (\frac {x}{2}+\frac {1}{3}\right )\,\sqrt {9\,x^2+12\,x+8}-\frac {4\,\ln \left (3\,x+\sqrt {9\,x^2+12\,x+8}+2\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________